<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,maximum-scale=1.0" />
    <title>详情订单表</title>
<#include "/view/admin/head.html"/>





    <style type="text/css">
        .list-path {
            height: 50px;
            line-height: 50px;
            background-color: #9acfea;
        }

        .table-class {
            width: 90%;
            text-align: center;
            border: 1px solid #afd9ee;
            margin: 0 auto;
            margin-top: 50px;
        }

        table th {
            width: 20%;
            background-color: #d9edf7;
            text-align: right;
        }

        table td {
            width: 20%;
            text-align: left;
        }


    </style>
    <script type="text/javascript">


    </script>
</head>
<body>

	<#include "/view/admin/listnav.html"/> 

<div class="table-class">
<#include "/view/admin/opermsg.html"/>
        <table class="table table-bordered">



  					<tr>	
  						<th colspan="4" ><center><h4><font color="red">订单收货信息</font> </h4></center></th>	
  					<tr>
  					
                <tr>
                <td>收货人</td>
                <td>
                <#if entity.businOrderdistribution ??>
                 ${entity.businOrderdistribution.recipients!}
               
                </#if>
                  
                </td>
                


                
                <td>收货人联系电话</td>
                <td>
                    <#if entity.businOrderdistribution ??>
                   ${entity.businOrderdistribution.phoneNo!}
                    
                        </#if>
                </td>
                </tr>


                <tr>
                     <td>购买人</td>
                <td>
                   ${entity.businOrderUser.nickname!}
                </td>
                <td>总金额</td>
                <td>
                       ${entity.totalAmount!}
                </td>

              
                </tr>


					   <tr>
           
                


                
                <td>邮政编码</td>
                <td>
                        ${entity.postalCode!}
                </td>
                     <td>订单状态</td>
                <td>
                	
                	 <#if entity.status ??>
                	<#if entity.status==0> 待支付</#if>
               		<#if entity.status==7> 待收货</#if>
               		<#if entity.status==8> 已完成</#if>
               		<#if entity.status==10> 取消订单中</#if>
               		<#if (entity.status==17 || entity.status==19)> 订单已取消</#if>
            	   	<#if entity.status==13> 待发货</#if>
            		  <#if entity. status==18> 退货成功</#if>
               			<#else>
               		--
               		</#if>
                	
                	
                </td>
                </tr>
	
                <tr>
               
                <td>买家留言</td>
                <td colspan="3">
                 <#if entity.businOrderdistribution ??>
                         ${entity.businOrderdistribution.message!}
                      
                         </#if>
                </td>
                </tr>


                <tr>
                <td>收货地址</td>
                <td colspan="3">
                  <#if entity.businOrderdistribution ??>
                     ${entity.businOrderdistribution.address!} 
                        
                     </#if>
                </td>

                </tr>
                
              	<tr>	
  						<th colspan="4" ><center><h4><font color="red">订单商品信息</font> </h4></center></th>	
  					<tr>
  					
  			 <tr>
                <td>商品名称</td>
                <td>购买数量</td>
                <td>购买单价</td>
                <td>商品默认图片</td>
                </tr>
               
               <#list list as c>
                 <tr>
                 
                <td>
                  ${c.commodityName!}
                 </td>
                <td>
                    ${c.amount!}
                </td>
              <td>
              ${c.salePrice!}
              </td>
                <td>
                        <img src="${base}/${c.imagePath!}" width="80px" height="60px" />
                        
                               </td>
                
                
                </tr>
                </#list>

            <tr><td colspan="4">优惠券信息</td></tr>
            <tr>
                <#if coupons??>
                    <th>是否使用优惠券</th>
                    <td><span class="label label-success">是</span></td>

                    <#else>
                        <th>是否使用优惠券</th>
                        <td colspan="3"><span class="label label-default">否</span></td>

                </#if>


            </tr>
            <#if coupons??>
                <tr>
                    <th>优惠券名称</th>
                    <td>${coupons.thingName!}</td>
                <th>优惠金额</th>
                <td colspan="3">${coupons.price!}</td>
                </tr>
            </#if>

        </table>
    </form>




</div>

<script type="text/javascript">

</script>


</body>
</html>
